{template "mheader.html"}
<link href="{THEME_PATH}assets/mall/css/mall.css" rel="stylesheet" type="text/css" />

<div class="portlet light ">
    <div class="portlet-title">
        <div class="caption fc-mall-order-title">
            <label style="margin-right:20px">{dr_lang('订单编号')}：<b>{$order.sn}</b> {dr_mall_order_source($order.source)}</label>
            <label class="fc-mall-order-status">{dr_lang('订单状态')}：{order_info_status($order)}</label>
        </div>
        <div class="actions">

        </div>
    </div>
    <div class="portlet-body">
        <div class="mt-element-step">
            <div class="row step-line fc-mall-order-step">
                <div class="col-md-2">
                </div>
                <div class="col-md-2 mt-step-col first done">
                    <div class="mt-step-number bg-white"><i class="fa fa-shopping-cart"></i></div>
                    <div class="mt-step-title uppercase font-grey-cascade">拍下商品</div>
                    <div class="mt-step-content font-grey-cascade">{dr_date($order._inputtime)}</div>
                </div>
                <div class="col-md-2 mt-step-col {if $order.pay_time}done{/if}">
                    <div class="mt-step-number bg-white"><i class="fa fa-rmb"></i></div>
                    <div class="mt-step-title uppercase font-grey-cascade">付款到平台</div>
                    <div class="mt-step-content font-grey-cascade">{dr_date($order.pay_time)}</div>
                </div>
                <div class="col-md-2 mt-step-col  {if $order.deliver_time}done{/if}">
                    <div class="mt-step-number bg-white"><i class="fa fa-truck"></i></div>
                    <div class="mt-step-title uppercase font-grey-cascade">商家发货</div>
                    <div class="mt-step-content font-grey-cascade">{dr_date($order.deliver_time)}</div>
                </div>
                <div class="col-md-2 mt-step-col  {if $order.receipt_time}done{/if} last">
                    <div class="mt-step-number bg-white"><i class="fa fa-handshake-o"></i></div>
                    <div class="mt-step-title uppercase font-grey-cascade">交易完成</div>
                    <div class="mt-step-content font-grey-cascade">{dr_date($order.receipt_time)}</div>
                </div>
                <div class="col-md-2">
                </div>
            </div>
        </div>
        <div class="row margin-top-30">
            <div class="col-md-6">

                <p>收货地址：{$order.name},{$order.phone},{$order.address}</p>
                <p>买家留言：{$order.remark}</p>

            </div>
            <div class="col-md-6">
                <label><a onclick="dr_iframe{if $order.deliver_status == 1}_show{/if}('{dr_lang("发货信息")}', '{$op_url}&at=delivery')" class="btn green"> <i class="fa fa-truck"></i> {dr_lang('发货')}</a></label>
                <label><a onclick="dr_iframe('{dr_lang("备注订单")}', '{$op_url}&at=log')" class="btn blue"> <i class="fa fa-save"></i> {dr_lang('备注')}</a></label>
                <label><a onclick="dr_iframe('{dr_lang("关闭交易")}', '{$op_url}&at=close')" class="btn red"> <i class="fa fa-close"></i> {dr_lang('关闭')}</a></label>
            </div>
        </div>
    </div>
</div>


<div class="portlet bordered light ">
    <div class="portlet-title">
        <div class="caption">
            <span class="caption-subject font-green"><a href="{$order.mall_url}" target="_blank">{$order.mall_name}</a></span>
        </div>
    </div>
    <div class="portlet-body form">
        <table class="table fc-head-table margin-top-20 table-bordered table-striped table-bordered">
            <thead>
            <tr>
                <th width="100" class=" text-center">{dr_lang('商品')}</th>
                <th>{dr_lang('详情')}</th>
                <th width="150" class=" text-center">{dr_lang('活动')}</th>
                <th width="110" class=" text-center">{dr_lang('单价')}</th>
                <th width="80" class=" text-center">{dr_lang('数量')}</th>
                <th width="110" class=" text-center">{dr_lang('总价')}</th>
            </tr>
            </thead>
            <tbody>
            {loop $goods $i $t}
            {php $sku_name=dr_string2array($t.sku_name);}
            <tr>
                <td class="text-center">
                    <a href="{$t.url}" title="{$t.title}" target="_blank"><img width="90" src="{dr_get_file($t.thumb)}"></a>
                </td>
                <td class="cart_description">
                    <p style="margin-bottom: 10px"> <a href="{$t.url}" title="{$t.title}" target="_blank">{dr_strcut($t.title, 150)}</a></p>
                    {loop $sku_name $i $c}
                    <small>{$i}: {$c} </small>
                    {/loop}
                    <p style="margin-bottom:0px;{if $sku_name}margin-top: 10px;{/if} color: #ccc">{dr_lang('货号')}：{$t.sn}</p>
                </td>
                <td class="pprice" style="text-align:center">
                    {if $t.p_name}
                    <p>{$t.p_name}</p>
                    <p class="product-price-group"> <span class="promotion">{$t.p_info}</span></p>
                    {else}
                    无
                    {/if}
                </td>
                <td class="price pprice" style="text-align: center">
                    {if $t.yuan}
                    <p>￥<span class="regular-price">{number_format($t.price, 2)}</span>元</p>
                    <p class="pyuan">￥<span>{number_format($t.yuan, 2)}</span>元</p>
                    {else}
                    ￥<span class="regular-price">{number_format($t.price, 2)}</span>元
                    {/if}
                </td>
                <td class="qty" style="text-align:center">
                    {$t.num}
                </td>
                <td style="text-align:center">
                   <p class="price">￥<span>{number_format($t.total, 2)}</span>元</p>
                </td>
            </tr>
            {/loop}
            </tbody>
        </table>

        <div class="row">
            <div class="col-md-6"> </div>
            <div class="col-md-6">
                <div class="well">
                    {if $give_money > 0}
                    <div class="row static-info align-reverse">
                        <div class="col-md-6 name"> 返现金额：</div>
                        <div class="col-md-6 value">￥<span class="regular-price">{number_format($give_money, 2)}</span>元 </div>
                    </div>
                    {/if}
                    {if $give_score}
                    <div class="row static-info align-reverse">
                        <div class="col-md-6 name"> 赠送{SITE_SCORE}：</div>
                        <div class="col-md-6 value"><span class="regular-price">{$give_score}</span></div>
                    </div>
                    {/if}
                    {if $order.discount > 0}
                    <div class="row static-info align-reverse">
                        <div class="col-md-6 name"> {dr_lang('优惠')}：</div>
                        <div class="col-md-6 value"> ￥<span>{number_format($order.discount, 2)}</span>元 </div>
                    </div>
                    {/if}
                    {if $order.promotion_name}

                    <div class="row static-info align-reverse">
                        <div class="col-md-6 name"> {$order.promotion_name}：</div>
                        <div class="col-md-6 value">{$order.promotion_info} </div>
                    </div>
                    {/if}
                    {if $order.freight>0}
                    <div class="row static-info align-reverse">
                        <div class="col-md-6 name"> {dr_lang('运费')}：</div>
                        <div class="col-md-6 value"> ￥<span>{number_format($order.freight, 2)}</span>元 </div>
                    </div>
                    {/if}
                    <div class="row static-info align-reverse">
                        <div class="col-md-6 name"> {dr_lang('买家付款')}：</div>
                        <div class="col-md-6 value"> ￥<span>{number_format($order.money, 2)}</span>元 </div>
                    </div>
                    <div class="row static-info align-reverse">
                        <div class="col-md-6 name"> {dr_lang('平台分成')}：</div>
                        <div class="col-md-6 value"> ￥<span>{number_format($order.income_money, 2)}</span>元 </div>
                    </div>


                    <div class="row static-info align-reverse">
                        <div class="col-md-6 name"> {dr_lang('本单实得金额')}：</div>
                        <div class="col-md-6 value font-blue"> ￥<span>{number_format($my_money, 2)}</span>元 </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>

<div class="portlet bordered light myfbody">
    <div class="portlet-title">
        <div class="caption">
            <span class="caption-subject font-green">{dr_lang('跟踪记录')}</span>
        </div>
    </div>
    <div class="portlet-body form">

        <table class="table fc-head-table margin-top-20 table-bordered table-striped table-bordered">
            <thead>
            <tr>
                <th width="160" class=" text-center">{dr_lang('操作时间')}</th>
                <th width="180" class=" text-center">{dr_lang('订单状态')}</th>
                <th>{dr_lang('记录')}</th>
            </tr>
            </thead>
            <tbody>
            {loop $op_log $t}
            <tr>
                <td class="text-center">
                    {dr_date($t.inputtime)}
                </td>
                <td class="text-center">
                    {order_info_status($t)}
                </td>
                <td>
                    {$t.log}
                </td>
            </tr>
            {/loop}
            </tbody>
        </table>

    </div>
</div>

{template "mfooter.html"}